package com.zhrenjie04.alex.service.consumer;

import java.util.List;

import org.springframework.stereotype.Component;

import com.zhrenjie04.alex.core.User;
import com.zhrenjie04.alex.core.exception.CrisisError;

@Component
public class UserServiceUtilFallback implements UserServiceUtil {

	@Override
	public List<User> getUsersByIds(List<String> ids) {
		throw new CrisisError("user服务器繁忙，无法请求到对应数据");
	}

	@Override
	public User getUserById(String id) {
		throw new CrisisError("user服务器繁忙，无法请求到对应数据");
	}

}
